        <?php        
session_start();      
include_once 'data_access.php';
include_once 'student.php';
$connect=new database_access();
$connect->connect();
$student=new student();
   $room_id=$student->getroomnum($_SESSION['personalnumber']);
if($_POST['nationalid1']){
  $student->add_recomendation($_POST['nationalid1'],$_SESSION['personalnumber'], $room_id);
}
if($_POST['nationalid2']){
  $student->add_recomendation($_POST['nationalid2'],$_SESSION['personalnumber'], $room_id);
}

header('location: donerecomendation.php');
        ?>